package com.meituan.sdk.model.ddzh.common.migrateTaskDetail;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询已迁移session明细
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/datamigration/migrationTaskDetail",
    businessId = 58,
    apiVersion = "10001",
    apiName = "migrate_task_detail",
    needAuth = false
)
public class MigrateTaskDetailRequest implements MeituanRequest<MigrateTaskDetailResponse> {
    /**
    * <p data-diff-id="ct-diff-id-445219d5-25a5-43ee-8b95-33cfa5295294">原北极星session</p>
    */
    @NotBlank(message = "session不能为空")
    @SerializedName("session")
    private String session;
    /**
    * <p data-diff-id="ct-diff-id-3e0c4aec-0700-40d3-97db-6612fe1231ae"><span style="color: rgba(0, 0, 0, 0.65)">页大小，大于0，小于等于100</span></p>
    */
    @NotNull(message = "limit不能为空")
    @SerializedName("limit")
    private Integer limit;
    /**
    * <p data-diff-id="ct-diff-id-142c31fe-6652-460c-828f-577b30878ec3"><span style="color: rgba(0, 0, 0, 0.65)">分页查询偏移值，最小为0</span></p>
    */
    @NotNull(message = "offset不能为空")
    @SerializedName("offset")
    private Integer offset;

    public String getSession() {
        return session;
    }
    public void setSession(String session) {
        this.session = session;
    }
    public Integer getLimit() {
        return limit;
    }
    public void setLimit(Integer limit) {
        this.limit = limit;
    }
    public Integer getOffset() {
        return offset;
    }
    public void setOffset(Integer offset) {
        this.offset = offset;
    }


    @Override
    public MeituanResponse<MigrateTaskDetailResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<MigrateTaskDetailResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "MigrateTaskDetailRequest{" + "session=" + session + "," + "limit=" + limit + "," + "offset=" + offset + "}";
    }
}
